package com.qmds.deviceserver.device.service;

import com.qmds.common.core.entity.Device;
import com.qmds.common.core.page.PageVO;
import com.qmds.common.core.vo.R;
import com.qmds.deviceserver.device.param.DeviceAddParam;
import com.qmds.deviceserver.device.param.DeviceEditParam;
import com.qmds.deviceserver.device.param.DevicePageParam;
import com.qmds.deviceserver.device.vo.DevicePageVO;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * --- 代码敲烂 月薪过万 ---
 *
 * @author ShiJiaWei
 * @date 2024/9/7
 * @desc:
 */
public interface DeviceService {
    R<PageVO<DevicePageVO>> devicePage(DevicePageParam pageParam);

    R<Integer> addDevice(DeviceAddParam addParam);

    R<Integer> updateDevice(DeviceEditParam editParam);

    R<List<Map<String, Object>>> findStatusForCharts(Integer tid);
}
